<%@ page language="java" import="java.util.*,java.sql.*"
	pageEncoding="utf-8"%>
<%@page import="DAO.GroundTypeDao"%>
<%@page import="VO.GroundType"%>
<html>
<head>
<title>查看球场类型</title>
<link rel="stylesheet" type="text/css" href="css/public.css">
<link rel="stylesheet" type="text/css" href="css/ground_type_check.css">
</head>
<body>
	<div id="mainbody">
		<%	ArrayList groundtypes = null;
			GroundTypeDao gdao = new GroundTypeDao();
			groundtypes = gdao.checkAllGroundType();//调用GroundTypeDao的checkAllGroundType()方法
		%>
		<div id="title">球场类型信息</div>
		<table border=2>
			<tr>
				<td>类型编号</td>
				<td>类型名</td>
				<td>说明</td>
			</tr>
			<%	for (int i = 0; i < groundtypes.size(); i++) {
					GroundType groundtype = (GroundType) groundtypes.get(i);//类型转换
			%>
			<tr>
				<td><%=groundtype.getId()%></td>
				<td><%=groundtype.getTypename()%></td>
				<td><%=groundtype.getDemo()%></td>
			</tr>
			<%
				}
			%>
		</table>
	</div>
</body>
</html>